import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },

    {
      path: '/workout-plan',
      name: 'workout-plan',
      component: () => import('../views/WorkoutPlanView.vue')
    },
    {
      path: '/exercise-library',
      name: 'exercise-library',
      component: () => import('../views/ExerciseLibraryView.vue')
    },
    {
      path: '/nutrition-log',
      name: 'nutrition-log',
      component: () => import('../views/NutritionLogView.vue')
    },
    {
      path: '/body-stats',
      name: 'body-stats',
      component: () => import('../views/BodyStatsView.vue')
    },
    {
      path: '/settings',
      name: 'settings',
      component: () => import('../views/SettingsView.vue')
    },
    ]
})

export default router
